﻿<%@ Page Title="" Language="C#" MasterPageFile="~/template/Admin.Master" AutoEventWireup="true"
    CodeBehind="SlideShow.aspx.cs" Inherits="EmptyWallGallery.FrontEnd.inside.Tools.SlideShow" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            Menus.DisplaySubMenu('menu-7-2');
            Menus.ChangeSelectedMenu('menu-7-2');
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ctphMain" runat="server">
    <div style="float: left; width: 100%;">
        <div id="iconArticle" class="icon32">
            <br />
        </div>
        <h2>
            Quản lý Slide Show</h2>
    </div>
    <div class="form-wrap" style="float: left; width: 98%; margin-right: 20px;">
        <div class="frmFilter">
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <th colspan="2" style="line-height: 26px;">
                        Thêm mới
                    </th>
                </tr>
                <tr>
                    <td style="width: 100px;">
                        Hình ảnh:
                    </td>
                    <td style="width: 350px;">
                        <asp:FileUpload ID="fileUpload" runat="server" />
                        - (486px x 173px)
                    </td>
                </tr>
                <tr>
                    <td>
                        Mô tả:
                    </td>
                    <td>
                        <asp:TextBox ID="txtDescription" TextMode="MultiLine" Width="350" Height="150" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="BtnUpload" runat="server" Text="Thêm mới" OnClick="BtnUploadClick" />
                    </td>
                </tr>
            </table>
        </div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                    <ProgressTemplate>
                        <div class="lblLoading">
                            Loading...</div>
                    </ProgressTemplate>
                </asp:UpdateProgress>
                <div class="lblError" runat="server" id="lblError">
                </div>
                <select name="selectedAction0">
                    <option value="0">-- Chọn --</option>
                    <option value="1">-- Hiển thị</option>
                    <option value="2">-- Không hiển thị</option>
                    <option value="3">-- Xóa</option>
                </select>
                <asp:Button ID="btnApply" CssClass="button" runat="server" Width="60" Text="Áp dụng"
                    OnClick="BtnApplyClick" />&nbsp;&nbsp;
                <asp:GridView ID="grdListArticle" runat="server" AllowPaging="True" AllowSorting="True"
                    AutoGenerateColumns="False" DataKeyNames="SlideId" PageSize="15" EmptyDataText="Chưa có slide nào !!!"
                    CssClass="ze-section-grid" Style="border-collapse: separate;" border="0" OnPageIndexChanging="GrdListArticlePageIndexChanging">
                    <Columns>
                        <asp:TemplateField ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                            HeaderText="STT">
                            <ItemTemplate>
                                <%# Container.DataItemIndex + 1 %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                            HeaderText="&lt;input type=&quot;checkbox&quot; name=&quot;cboCheck&quot; onfocus=&quot;this.blur();&quot; id=&quot;check_all&quot; />">
                            <ItemTemplate>
                                <input type="checkbox" onfocus="this.blur();" name="cboCheckArticle" class="checkbox"
                                    value="<%#Eval("SlideId")%>" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Hình ảnh" ItemStyle-Width="10%">
                            <ItemTemplate>
                                <%#DisplayImage(Eval("ImageUrl").ToString())%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Mô tả" ItemStyle-Width="10%">
                            <ItemTemplate>
                                <div onmouseover="javascript:Util.DisplayPostAction('PostAction_<%#Eval("SlideId")%>');"
                                    onmouseout="javascript:Util.HidePostAction('PostAction_<%#Eval("SlideId")%>');"
                                    style="height: 32px;">
                                    <%#DisplayTitle(Eval("ImageDesc").ToString(), 100)%>
                                    <div class="PostAction" style="display: none;" id="PostAction_<%#Eval("SlideId")%>">
                                        <a href="SlideShowUpdate.aspx?ID=<%#Eval("SlideId")%>&ReUrl=<%=Server.UrlEncode(Request.RawUrl) %>"
                                            title="Edit this Post">Sửa</a>&nbsp;|&nbsp;<a href="SlideShow.aspx?action=Delete&ID=<%#Eval("SlideId")%>&ReUrl=<%=Server.UrlEncode(Request.RawUrl) %>"
                                                title="Delete">Xóa</a></div>
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tạo bởi" ItemStyle-Width="15%">
                            <ItemTemplate>
                                <%#DisplayCreateBy(Eval("CreateBy").ToString())%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Ngày tạo" ItemStyle-Width="15%">
                            <ItemTemplate>
                                <%#DisplayStatusDate(Eval("CreateDate").ToString(), Eval("Status").ToString())%>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle CssClass="header" />
                    <PagerSettings Mode="NumericFirstLast" />
                    <PagerStyle CssClass="footer" />
                </asp:GridView>
                <select name="selectedAction1">
                    <option value="0">-- Chọn --</option>
                    <option value="1">-- Hiển thị</option>
                    <option value="2">-- Không hiển thị</option>
                    <option value="3">-- Xóa</option>
                </select>
                <asp:Button ID="btnApply2" CssClass="button" runat="server" Width="60" Text="Áp dụng"
                    OnClick="BtnApply2Click" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
